package edu.gduf.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import edu.gduf.entity.Signin;

@Mapper
public interface SigninMapper {
    int deleteByPrimaryKey(Integer signinId);

    int insert(Signin record);

    int insertSelective(Signin record);

    Signin selectByPrimaryKey(Integer signinId);

    int updateByPrimaryKeySelective(Signin record);

    int updateByPrimaryKey(Signin record);

	int updateSign(@Param("signintime") long signintime, @Param("starttime") long starttime, @Param("tId") int tId,
			@Param("stuId") int stuId);

	List<Signin> selectList(@Param("tId") Integer tId, @Param("stuId") Integer stuId, @Param("status") Integer status);

	List<Signin> selectByStarttimeAndTid(@Param("tId") Integer tId, @Param("starttime") long starttime);
}